import Redire from "@/views/redire.vue";

export const routes = [
  {
    path: "/",
    component: () => import("@/views/main/index.vue"),
    children: [
      {
        name: "classManagement",
        path: "/",
        component: () => import("@/views/classManagement/index.vue"),
        meta: {
          title: "班级管理",
          keepAlive: true, // 不需要缓存
          icon: require("@/static/image/bjgl.png"),
          iconed: require("@/static/image/bjgled.png"),
          checkcolor: true,
          check: true,
          hiddle: 0,
        },
      },
      {
        name: "correctHomework",
        path: "/correctHomework",
        component: () => import("@/views/correctHomework/index.vue"),
        meta: {
          title: "批改作业",
          keepAlive: true, // 不需要缓存
          icon: require("@/static/image/pgzy.png"),
          iconed: require("@/static/image/pgzyed.png"),
          checkcolor: false,
          check: false,
          hiddle: 0,
        },
      },
      {
        name: "assignHomework",
        path: "/assignHomework",
        component: () => import("@/views/assignHomework/index.vue"),
        meta: {
          title: "布置作业",
          keepAlive: true, // 不需要缓存
          icon: require("@/static/image/bzzy.png"),
          iconed: require("@/static/image/bzzyed.png"),
          checkcolor: false,
          check: false,
          hiddle: 0,
        },
      },
      {
        name: "questionBank",
        path: "/questionBank",
        component: Redire,
        meta: {
          title: "题库",
          keepAlive: true, // 不需要缓存
          icon: require("@/static/image/tk.png"),
          iconed: require("@/static/image/tked.png"),
          checkcolor: false,
          check: false,
          hiddle: 0,
        },
        children: [
          {
            name: "questionBankIndex",
            path: "/",
            component: () => import("@/views/questionBank/index.vue"),
            meta: {
              title: "题库",
              keepAlive: true, // 不需要缓存
              icon: require("@/static/image/tk.png"),
              iconed: require("@/static/image/tked.png"),
              checkcolor: false,
              check: false,
              hiddle: 1,
            },
          },
          {
            name: "myQuestionbank",
            path: "myQuestionbank",
            component: () => import("@/views/questionBank/myQuestionbank.vue"),
            meta: {
              title: "我的题库",
              keepAlive: true, // 不需要缓存
              checkcolor: false,
              check: false,
              hiddle: 0,
            },
          },
          {
            name: "questionBasket",
            path: "questionBasket",
            component: () => import("@/views/questionBank/questionBasket.vue"),
            meta: {
              title: "题筐",
              keepAlive: true, // 不需要缓存
              checkcolor: false,
              check: false,
              hiddle: 0,
            },
          },
        ],
      },
      {
        name: "library",
        path: "/library",
        component: () => import("@/views/library/index.vue"),
        meta: {
          title: "图书馆",
          keepAlive: true, // 不需要缓存
          icon: require("@/static/image/tsg.png"),
          iconed: require("@/static/image/tsged.png"),
          checkcolor: false,
          check: false,
          hiddle: 0,
        },
      },
      {
        name: "mine",
        path: "/mine",
        component: Redire,
        meta: {
          title: "个人中心",
          keepAlive: true, // 不需要缓存
          icon: require("@/static/image/grzx.png"),
          iconed: require("@/static/image/icon01.png"),
          checkcolor: false,
          check: false,
          hiddle: 0,
        },
        children: [
          {
            name: "message",
            path: "message",
            component: () => import("@/views/mine/message.vue"),
            meta: {
              title: "消息",
              keepAlive: true, // 不需要缓存
              checkcolor: false,
              check: false,
              hiddle: 0,
            },
          },
          {
            name: "userInfo",
            path: "userInfo",
            component: () => import("@/views/mine/userInfo.vue"),
            meta: {
              title: "个人信息",
              keepAlive: true, // 不需要缓存
              checkcolor: false,
              check: false,
              hiddle: 0,
            },
          },
        ],
      },

      {
        name: "homeworkDetail",
        path: "homeworkDetail",
        component: () => import("@/views/correctHomework/homeWorkDetail.vue"),
        meta: {
          title: "作业详情",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
      {
        name: "classDetail",
        path: "classDetail",
        component: () => import("@/views/classManagement/classDetail.vue"),
        meta: {
          title: "班级详情",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
      {
        name: "practiceDetail",
        path: "practiceDetail",
        component: () => import("@/views/classManagement/practiceDetail.vue"),
        meta: {
          title: "练习大题",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
      {
        name: "bigListDetail",
        path: "bigListDetail",
        component: () => import("@/views/classManagement/bigListDetail.vue"),
        meta: {
          title: "大题列表详情",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
      {
        name: "assignWords",
        path: "assignWords",
        component: () =>
          import("@/views/classManagement/vocabularyBook/assignWords.vue"),
        meta: {
          title: "布置单词",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
      {
        name: "downloadSheet",
        path: "downloadSheet",
        component: () =>
          import("@/views/classManagement/vocabularyBook/downloadSheet.vue"),
        meta: {
          title: "下载学生自测单词表",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
      {
        name: "userDetail",
        path: "userDetail",
        component: () =>
          import("@/views/classManagement/libraryStatistics/userDetail.vue"),
        meta: {
          title: "图书馆学生详情",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
      {
        name: "studentDetail",
        path: "studentDetail",
        component: () =>
          import("@/views/classManagement/student/studentDetail.vue"),
        meta: {
          title: "学生详情",
          keepAlive: true, // 不需要缓存
          checkcolor: false,
          check: false,
          hiddle: 1,
        },
      },
    ],
  },
];
